completed ex1 optional exercies