added some functional programming examples related to arrays