implement ex. func