Added error messages as a first class collection class
Refactored code to replace List<Message> by new ErrorMessages class