SubState Demo

Added demo for SubStates functionality