Added code to the Announcement model class.