First draft of pgn function with test case.
First draft for a pgn function
First draft for a pgn function