Added second problem with unfold function as sequence generator