added Code::matches()