added the first generic function to issue06