In 1682 Purcell became organist of the Chapel Royal. He did this job as well as being organist at Westminster Abbey. His first printed composition, "Twelve Sonatas", was published in 1683. Music printing was expensive in those days, so it was unusual to have something printed. He continued to write music including odes to the king and royal family. In 1685, he wrote two of his finest anthems, "I was glad" and "My heart is inditing", for the coronation of King James II.