add extra

extra: the example code provided by Professor