Create ex6.m