attempt at class