Question from the Ruby test

Define a class foobar that inherits from Array and has a method foo.