add the PAT class. need to still add units tests and the build method