The present disclosure provides compounds of Formula I:or a pharmaceutically acceptable salt thereof, wherein R5, R6 and Z are as described herein. The disclosure also provides pharmaceutical compositions thereof and methods for inhibiting DHFR activity and methods for treating cell proliferative diseases, autoimmune disease, inflammatory disease or bacterial, fungal or parasitic infection by administering a compound of Formula I.