added run method to handle output message
added new method startsWith