defining classes a bit more clearly