moved response loops into separate functions
Merge branch 'master' of github.com:megkatjo/cs118