This is the full solution being committed by Mickey Puri

Mickey Puri: My Test solution for the Math Parser