Solutions for code battle 2013.