implemented sample