Added comments in Input class for clarity.