fix : the main class need to extend Sprite