sentence: as used in the napoleonic wars , the formation was constituted as a hollow square , or sometimes a rectangle , with each side composed of two or more rank of soldiers armed with single-shot musket or rifle with fixed bayonet .