Added instance variables, constructor, made other object methods private.