Added solution to problems 24, 25 and 26.