Encapsled UserInput to a class