David Cameron has learned how Europe works: better late than never