Initial code for Sprite.