simple state demo working