Solution to project needed in the subject Programming 2 at Barcelona School of Informatics the fall od 2014.