Added Global Variables, Procedure and Boolean Function