Java Magazine Code Challenge issue #4 2014