Add the demo code for class and field