assignment 4 in the c# class