Set MainActivity as sampler of the system
Implemented Observer pattern between the distributed system class and the ConnectAsyncTask