write a first class