added index.cpp

Signed-off-by: Daniel Fagnan <g.deric.f@gmail.com>