Functional client and server sketch