Sample code used in class