Adding a simple thread state demo.