Adding sample codes used in class