consolidated loops for efficiency
Merge branch 'master' of https://github.com/lbud/hbex05