Programmatic Registration Example