Clean prob2 code