redefining classes