updated class2 sprite exercise