passes testConstructorAndAtrtributes.java