I assumed that the lookup() function would return 1/0 instead of nothing/error since I don't know how to trap errors yet.