APL third assignment