Added code example to index