cleaned up example 1