added comments on every functions we have to write