Refactored problems 6 to 10