First draft
Added rest
Added getter and setter functions to base class.