solution1 working