Completed 1.1.4, includes the algorithm written in python in both formats, original and the answer for 1.1.3