added random walk solution