Solving percent and mass add to class