Old code from various classes I've taken in the past.