homework 2 exercise b