Added API methods that match the tutorial