Made inner classes static in Tread.java and Arm.java