Added mass definition to program, still segfaults