Solution spring 2009 task 1