Read the sentence below and answer the question.

The beloved family dog loved to chase squirrels.

In the sentence above, the phrase "the beloved family dog" is serving as what part of speech?

A. a verb
B. a noun
C. an adverb
D. an adjective