creating logic file