slight changes to make solution1 compile