refactored printer agent
Merge branch 'master' of github.com:lingz/cs209-ass1
refactored main