firstAvgGain compiles succesfully
Resolving merge conflicts