third attempt at code blocks