Refined button class and made small test application.