refactored code into an MVC framework for Message Board.