added but not finished porting some examples
porting an example