Add key and value method for a new class)