Assignment 2 for Compilers-2 class