Created series.py for the Mathematical Series assignment