Updated Main method in logic

Created a main in logic to execute.