Added method flip().