implemented new notebook format for code