Adding first iteration of working code. We should seed in a better way from a file or from random device.