Adding documentation to assign function