Writen for the daughter of a friend. When putting it together I was thinking of the keyboard sonatas of Scarlatti: AABB.