for Paul Cantrell-homework for COMP 225