An Abstract Model for the Origin of Life