Changed courseLength from String to int