Rigirous Methods - Coursework written in spark