new_transition_function function

Constructor for transition functions