Adding extension for T