Sample code and test cases.