basic functions of a car accident attorney