Code for 2361 Lab