setHeight and setWeight method implementation