Added class Input. Will handle everything from the input. Added more functionality to Output class