Added comments and the function bodies to the stub functions provided.