Furosemide should be used for: