APS assignment 2