solved complete ex1