updated with another student solution.
Merge pull request #72 from Jberczel/patch-2

updated with another student solution.