Added get_type method to attribute