Firm is not a physical sense but actually a being which allow entrepreneur to decide the resources distribution under a given price signal.
Other than that, it can also act as the proxy to determine the pricing arrangements and contractual arrangements between factor and product market.