solutions to 06_functions