Created the main function to calculate according to the OHM law.