Example functions added

triangular_number_gen function , and hex_number_gen added.