Adding gene creation function