Move the sevensegment code out into its own file