better use of rand()
added a gene class and config class