Added inheritance of match class to list class