Lab5 for CS3240