add graph classes and incomplete spec file.