implementing sample