new sample code done for <X>