Implemented basic input function and tested for the three test cases

Only one extra line at EOF please.