It’s a unit with an interface and an implementation.

A module defined by its function and logic. Function - what the module is supposed to do (business functionality). Logic - how the module implements its business functionality.

Depth of the Module