compute_loadings function

Compute Loadings