made function for Creating entry, need to test it