Incorporated Raouls Indexing and added code for Indexing Class