implemented play method