added part4 source code and documentation part