Implemented BaseModel and added fragment and view for messages.