Updated print method to include divider