A mental framework for investigating bugs