Then she went home and planted the barley-corn ; immediately there grew out of it a large and beautiful flower , which looked like a tulip , but the petals were tightly closed as if it were still only a bud .