Changed the methods to add arguments and add a no-argument constructor