started implementation of function to create the initial population