Added imports and fixed tab printing