The final code with the appropriate dataset