demo class code