Implemented most of the fortune statistics function