aps assignment 2