The code I have written in python at an MITx course.