Finished HW, need to generalize notes to ions of arbitrary valence