added class functions
initial commit for c++ homework from Darren