Added new file to contain common functions common to all classes
Moved sendMessage to common