Final code and report