added local and global rotations to the model class