For Replacement with map, flatMap and filter
Initial commit of Generator explained in Coursera