Workable code for minimal requirements