Create main code