Create MAIN CODE