Created improved coinFlips.py inspired by book