Dock creation Code