fixed up example 4