adding intFromList method