Translation and scale function were added.However,the position of shape
which was translated were not correct.