Refactoring of "TimeCode" class