Coding the happiness