Basic code for lab 10