simplify. learning scala