input class has all its methods; rewriting main
moved button handling to separate class