Project 4: Lecture 18, Connectivity class