added initial code

added initial code and example