Code I generate doing a school project