Making MessageReceiver class public