blogs code - closes #9