Home task 2 for the APL