he composed religious works and hymns