Created a table to represent types of objects by using its index