type Rules = HashMap<String, HashMap<String, i64>>;