Comments for the written function
Problem3 resolved