Various ways os using the generator functions