pseudo code and main idea finished
finished number 4