Finished Register API example