added happiness code base