Init PR

Migrated code, a sample template, compilation OK.