while david had mastered the styles and behaviours of the twenty-first century , practicing them well at school , when it came to automatically switching to 'good boy ' mode around a girl 's parents , old habits died hard .