Implemented Gene class.