Created main, constructor and two methods