initial implementation of naive version of Neumann