Started a function and added some arrays

Started a function and added some arrays