a complete code from friday