complete demo for class 3