Solved problem twelve