added a get_sample method with fancy metaprogramming otherwise its pointless to use ruby :-)