exercise from Code Academy.