Changed the constructor to be method call