added transitions and nest examples