Optimized with less redundant code
Merge branch 'master' of github.com:stuycs-apcs-z/hw