implementation example logic