adding improved ask method program