Add one more problem in scala