add cucumber tests to demonstrate function

page 371
Merge pull request #7 from bhouse/cucumber

add cucumber tests to demonstrate function