CODE from the GOOGLE CODEJAM!