P4 On Your Own Functions Defined