Create Controller code