add scala code blocks