An object of mass m is dropped from rest in a medium that offers resistance proportional to |v|, the magnitude of the instantaneous velocity of the object. Assuming the gravitational force to be constant, find the position and velocity of the object at any time.