implementation receiver almost done started implementation for distribution of messages