state and count for each instance
adds simple demo example
cleanup