made codeblocks fit for lec 4