Added getSamples method.
Merge branch 'acbecker/ticket1'