introduced a user class to handler the user input