added gravity class