Use if statement instead of FixedMass Class