He joined the Piarists order and after that he taught mathematics in Piarists school in Waręż and Łomża.
After becoming a member of the Piarists, he taught mathematics at their schools in Waręż and Łomża.