A possibly complete but inelegant version of Project 3.