completed ex 6 execises