placed implementation sections in code blocks