Restructure samples
Added resource loader