added Gravity class