Solved problem 17.
Corrected result type.
Solved problem 18.
Improved match express.
Solved problem 19.
Refactored utilizing mod behavior.