Create addWeightLogic.php

work in progress