the sonata attained its final form some time between 1729 and 1741 and survives in a copy made by bach's pupil johann friedrich agricola. now with five movements and matching more closely the earlier five sonatas, it retained the first two movements (with some minor modifications, including "vivace" changed to "allegro") but had three newly composed movements after that: a dance-like harpsichord solo in e minor in binary form; an adagio in b minor, modulating to d major; and a gigue-like final allegro in g major.