purpose of code