added output in question2