Beginning code and first search algorithm.