Solutions to learnyounode modules 6, 7, 8, 11 and 12