splitting exercise1 solution into seperate file