Writing main code now