Sample code for test 1 --- this was done in class.