Converted 'calculateRaceBonus' to work with class 'character'