Adding example for basic constructor function