The present teachings relate to compounds of Formula I : and pharmaceutically acceptable salts, hydrates, esters, and prodrugs thereof, wherein R 1 , R 2 , R 3 , 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.