Solution is saved in struct