Creating main code