mplemented problem with 3 mass points