first version of class program