using greatest function

Original text of this message