finished example 10 like a boss