modified solution to gauntlet task6 a bit