what code to write?