Is "In 1824 and 1825, at Szafarnia, he was a guest of Dominik Dziewanowski, the father of a schoolmate." a good answer to the question "Who was Frederic a guest of during his visit of Szafarnia in 1824 and 1825?"
yes