Updated based on PR comments
Created AgentReceiver class and unit tests.