Initial implementation of the base model.  Also including test/small graphs