Implementation of a button class and test program