adds index and archive methods to Opportunity class