See below for a fully worked project plus explanations as well PS i wouldn’t copy this if i were you especially if it’s for university doesn’t take them to long to catch you out
If you are looking for decent compiler for this protocol look no further than Proton Basic (crownhill associates) All X10 functions included plus excellent help with respect to this compiler
That’s should get you started in the right direction