added a simple search algorithim