I have added my final code