another implemantation of return with exammples