ruby: started to work through solutions, fixed iteration in 04.py