Made for homework 11 for comp 398