Using masses in geometry using the example of medians in a triangle