Extracted skeleton to a separate class. Sloppy coding may need refactoring, but for now it works and compiles.