Changed script to POO

OnlineChecker will be object oriented