solved the 4th use case and improved prez