added a simple discretization example to docs