Solution for baby steps 9.