mood piped

Piped version of the function mood.