A study of trainee general practitioners