Added generic "add(T)" function