7-seg display

A 7-seg display is a simple digital display. It has 7 outputs, and is commonly used to display numbers.

Write the boolean expressions for each segment assuming a 4-bit input. Further visual explanation will be provided on the board.