included the function as a black box picture to part 2