What part of speech is "writer" in the following sentence?:

The WRITER works rapidly when he feels inspired, but he suffers terrible periods of drought when inspiration won't come.

A
noun

B
subordinating conjunction

C
verb

D
adverb

A. noun