Changed Sprite composition to inheritance.