How bad habits are built