Design of code