assignment3 submitted with bugs