factorial use file as buffer
calc 7
calc 9
calc final