add pathname library exercise