Added flip function
updated version