implemented a simple path finding example