added transitions and new example