cleaned up and added another example