Finished implementing the constructor