Add ruby code to divide y into x