Replaced id with instancetype