Added the "calculateTotalScore" function - Paired Programming Assignment