implement add/delete method for routine class