Adding the dp command
Implementing p command