That's not how similar formulas are written. I don't think you can nest classes in Ruby anyway; it's a syntax error IIRC.