Code snippet for class