Create demo.php

code to test the class