working on simulator, added graph class