added a comma to attr_accessor and added a new object
added case statement, method responds to just enter key entry