Who was Ibn Sina's first appontment