modified good-code/bad-code to be clearer