Adding complete code