LegacyEnroll sample code

This sample code is for testing purposes