Paper Example adapted--> added Refinement class, changed master and slave role