what did thomas jefferson serve as for john adams?