Added getType() method
Added getType() method