A really bad implementation of the index command

Hope you like it!