added needed header; moved Input class detailed implementations to end of application file