Add a new constructor method into KV.java