Code written while I was teaching myself python.