lab5 solution init