What is a gemstone?

a. a mineral that is rare and is considered to be beautiful
b. a rock or mineral that is used to make jewelry
c. a rock or mineral that is valuable
d. all of the above