Added function and placed two arrays inside of it.