Use accual input value to generate message

Read input fom user and send to messagelib.