class6 assignment2and3