An object is attached to a coiled spring. The object is pulled down (from its rest position) and then released. Given that the distance from its rest position at time t = 0 is 3 inches, its amplitude is 3 inches, and its period is 1.5 seconds, write an equation for the distance d as a function of time t in seconds of the object from its rest position.