seperated out user input to a seperate class
seperated out user input to a seperate class
used attr accessor- feedback from code review