in #2 also a minor code improvement has been made. An unused variable is remo...