Started working on the 2nd task. Heaps of nightmare and shitcode are included.