Writting Execution function