require 'socket'
server = TCPServer.new('127.0.0.1', 8989)
while (session = server.accept)
  request = session.gets
  puts request
  session.print "<data>Twoje zadanie to #{request}</data>"
  session.close
end
