name changes and solved problem 9
removed duplicate problem 9
solved problem 10, ruby makes some of these way too each