Complete code for the workshop