i wrote code print and function