fixed assignment
implemented declaration of variables