Code to convert Leagues