Update Hat.java