Code used for competition