Added InputHandler class