Adds remove(key) method.