add start of mailbox handling functions
send and recieve in prolog