add solution for quiz1.sc