How to make gower’s solution