Removing error check as it will not work inheritance
Throw error if adding same class twice. Fix bug in added