created message and activity classes