create get_wrapping_tag method for Component