The film begins with Baron von Rosensteen's funeral. As Rosensteen has no heirs, the old Rosensteen Castle is to be inherited by the Rabenfeldt family. Supreme Court Attorney Berg visits the widow baroness about a document found among the papers of her son, the deceased baron. It turns out that the baron had a child out of wedlock with a non-noble woman. The widow baroness and the Supreme Court attorney decide to find the child, as this would mean that an heir to the castle had been found. The child turns out to be a girl named Anne Tofte, who works at a gas station with her uncle Lars Tofte and his colleague Hans Høy. They persuade Anne to live with the baroness for a while, which she is not very keen on. The widow tries to teach Anne to be a fine lady, rather than the tomboyish workshop mechanic her uncle had raised her to be.