added movingobject class