Created Graph and Node classes