Fixed ruby program