when independence arrived in nicaragua they began to divide the country in departments