Code written in Python as part of edX course