Recreated the Edge class. Not finished yet.