With help and research :| , solution to problem 26