adding the code for the documentation