fixing the compile errors
object oriented design
Merge pull request #4 from adand/objectOrientedDesign

Object oriented design