Added constructor, and method with comments