Implment the sample for link list of int, float, Double.