replacing placeholder sayMessage with a proper implementation