added input functions and runStuff function; no errors but does not run