guess3

revised with comments