My solution to the chalenge from programming module on TUBerlin. Brought me 6'th place.