simple two-d demo