my first attempt at python 3 code