private void btnDelete_Click(object sender, EventArgs e)
        {
            int deleteIndex;
            //limit of -1 to prevent crashes when lstbox has no selected index

            int limit = -1;


            if (lstDisplayBox.SelectedIndex == limit)
            {
                MessageBox.Show("You have not selected any item to Delete");
            }
            else
            {
                //deleteIndex assigned the selected index
                deleteIndex = lstDisplayBox.SelectedIndex;

                //deleteInstance() method receives this index to delete this item from the teacher list as well as the list box
                tea.DeleteInstance(deleteIndex);

                //listbox removes the selected item
                lstDisplayBox.Items.Remove(lstDisplayBox.SelectedItem);
            }
        }