Added notes on relation and functions