examples of using constructors