messages class
using model