ruby: solved 001
ruby: solved 002