var table(contacts)
contact c = new contact(name, phone number)
table.add(c);
contact c1 = table.find(name)
if ((contact cr = table.find(name))!= null)
{
table.remove(cr)
}
contact cx = table.find(name)
cx.name = "newname"
cx.phonenumber = newnumber
table.save(cx)
This should give you a rough idea of what and how of writing psuedo-codes for your problems. This is no programming language but just abstract pseudo-English statements describing the data and operations.
Cheers..