a simple socket application for practise