Demo 4: test with data