implemented assignment, write, read statements