Complete server example