Homework 5 for COP3530