Implement Passage class and add unit tests