Added solution form problem 12