Extracted parser class
Saddle Points in Ruby