Title: A numerical study of protostellar formation