hw2 solution
fixed up variables
Merge pull request #2 from suhkang/hw2

verified hw2 solution