@Override
    public Person delete(long id) {
        for (int i = 0; i < persons.size(); i++) {
            if (persons.get(i).getId() == id) {
                return persons.remove(i);
            }
        }
        return null;
    }