Refactored and completed all exercises practicing functions.