Added main function,  function to compute solution to q3 and relative error function.