TODO

Rename get_attribute_index to get_index or _get_index
Check that each attribute is only given one index value
? Allow the index to be flexible to something other than a number ?
Methods for allowing the class to access lists of attributes, etc.