Create TPStateMachine.swift