My CS571 Homework