formula of making major scale