translate, rotate, plot function implemented