d3 demo codes and head first design pattern updates

d3 demo codes
head first design pattern updates: observer pattern