This was the context in which Beethoven hoped to build on the reputation he had developed in Vienna, and to establish contacts with new friends and patrons. Beethoven played the piano before the king many times, and on one of these occasions he was joined by one of the Duport brothers to introduce his two Sonatas for Piano and Cello, Op. 5, which he had just composed. When the composer left Berlin in the summer of 1796, Frederick William II gave him a gold snuffbox filled with Louis d'or, and Beethoven returned the favour by dedicating to the monarch the first edition of the sonatas, published in Vienna the following year.