week 3 of coursera, bad solution (style issues)