revised Sprite class