Deleted wrong answer
Final working solution