beta_code_without_mayor_trick/