adding a simple state demo