Theory and practice of observing behaviour