Basic code from Lab 02