Added the pi functionality and also a label which displays whatever is entered by the user.