PDP PS Ex 1 - 10

Rewrote the code in interactive window to definition window.