a subroutine that performs a precific task.