practice to write a calculate