some basic tests given as exercises. The production code must pass the tests succinctly.