Implementation of a button class and test program

Changes