Implemented and debugged user input