Finished ch1 ex12.c