added hand class, tests for it, interfaces for basic classes and contracts for them