Completed Hand class with unit tests.