Implement member functions and accessors.
Refactor member functions with std::for_each.