Lab 7 for CS315