How do you replace thermostat on 1999 Pontiac Grand Am 6-cylinder?

it's under the throttle body ,(air intake) on right side(back of the motor)pully and belts is on the leftside(front of motor)1999 grand am 3.4 sfi.