Creating the final code