added object oriented qns