added more code for compiling statements.