HW1 - Search function completed.