Added comments at the top (header) for the second function