added classification functionality, compiles need to debug gap error