added parallel and serial example

This is untested
update
update