Implemented Input class