fixed code-block statements and added requirements