updated example 2 to use mouse input