adding Sprite class to act as base class for view classes