Simple network


I have 3 Xbee series 2 modules and i want to creat a small network that has an end device, a router and a coordinator. The end device must collect my data and send the information to the router that will just forward the information to the coordinator which is my destination node. I can make 2 modules to communicate and be able to receive the data but however when i try to introduce the router nothing is working. So could you guys please help with step by step of how can i archeive what I want to archieve.

Thank you in advance.