Added rspec tests for BDD then implimented code to satisfy the tests.