added more functional programming samples.