The present teachings relate to compounds of Formula I:and pharmaceutically acceptable salts, hydrates, esters, and prodrugs thereof, wherein R1, R2, R3, Y, Z, and are as defined herein.The present teachings also provide methods of preparing compounds of Formula I and methods of using compounds of Formula I in treating, inhibiting, or preventing pathologic conditions or disorders mediated wholly or in part by deacetylases.