Hacked together first draft of p6...lets see if it compiles