Z Transform Method for Solving Difference Equations