finished ex06
kinda finished ex09