Lahore, Oct 15 : Former Pakistan captain Javed Miandad has said that he shared a teacher-student relationship with Inzamam-ul Haq, who retired from Test cricket last week.