Assignment2 and 2d structure array