updated printMilitary to use inline template for testing