Moving mood calculation code to its own classes.
This logic now in a lib class.