my failed code assignment for ThoughtWorks