Taken input and initialized arrays