solved probem 12