Start to write java.net implementation
Clean code