It's hard because of the method calls within the buttons themselves. To move this to abstract class I would have to move sendsolution() as well which wouldn't make any sense... idk what do you think?