completion of stub for assignment 2