assignment 3 in c# class