homework 1 and solutions for programming paradigms 1531948