First version of button class