Added functions

to-do: add division, finish record array