Added codeLevel, continuing work on ex. 24