Rewirte the construction. add remote.h remote.c calculate.c calculate.h