Implemented the Hand class