homework 2 exercise b and c