perfect code desgin