Writing button class for GUI buttons