modified Hand class