second round of python bob exercise. Much more condensed and