finished problem 11 (not the cleanest code yet)
added base for twelve