Added ReferralBlock class and it's unit tests