Writing the Sprite Class