buggy constructors for classes