added main method to demo class