This project builds on the typical LED examples because the basics of the 5161AS 1 digit 7 segment LED is basically similar to 8 LEDS except for the difference that they share a common anode or cathode (depending on the type you have). These types of displays are made by several different makers and there are some minor differences in specs and pinout. You may need to find the exact datasheet for the version you have and adjust the wiring diagram to suit.
Here is the pinout for the 5161AS I used for this tutorial:
E 1 -- F B -- 10 G
D 2 -- F B -- 9 F
GND 3 -- GGG -- 8 GND
C 4 -- E C -- 7 A
dp 5 -- E C -- 6 B
A typical 5161AS datasheet can be found here: