Playing with thinking in scala