implemented send method