Added getTypes() method