added a simple way to run simple functions in parallel