Homework 2 for CSCE 314