created example directory

and moved the demo codes there