added button class to control led and read input from button