added Input class (tut 3)