Mainfile takes in input