Exercise 7 from OSCON 2014 Codename One tutorial