adding class error example