Finished example code in class