Glasgow schoolboy writes sweet letter to teacher to cheer her up after losing her pet dog