Working model of the program. Writes values of h and absolute relative difference.