As part of Homework 4.