Removed main method. Made methods protected.