Next to the church, the prison-like building with those fierce, barred windows was, in fact, a prison when it was built in the 17th century.
A prison was built in the 17th century next to the church.