Skeleton complete. There are now TODOs for the remaining logic.