scala for impatient solutions