added function, mutator, and accessor

trying to figure out how to tell the story using the required flowchart
items