Code demos on learning scala