APL lab assignment 1