Understanding BDD at code level