what is an excavator used for

what is an excavator used for