Implemented Input class

The parse function of Input class is implemented.