[008] Added template method dsign pattern for receiving message and it still need to repair.