Started work on add and mod functions