created brownian 2d function as well.