finished ex6
complete