During the visit the king gave Bach a theme and asked him to write a 3 part fugue based on it. Bach was good at improvisation so he made up a 3 part fugue. The king wondered whether he could make up a 6 part fugue. That would be very difficult, and people thought he was joking, but Bach said he would think about it.