I recall learning a definition of class that revolved around the axes of ownership of means of production and authority over workers. Having neither makes one working class, having the former makes one old middle class, the latter new middle class, and both upper class. It's a fairly flexible way to look at it.