Add main runner and sample files
Fix method to resolve the same way as field