Added pe7 solution for ruby.