functioning class