HW assignment 1
code tweaks for readability
more self-explanatory variable name