Create MessageManager.java for message managing.