Scanner added from laboratory 1 and new class created for parser