Exploring Functions and arrays