Writting array with many ways