Added function to create initial population