 Teaching at an early stage in human history that a sacrifice was necessary to approach God. And so God gave very specific direction on what that sacrifice was to be. Abel brought the sacrifice that God had prescribed and God accepted his sacrifice. But Cain decided to freelance a little bit.