Adding Messages class