new sample for using resources added