Skeleton code for three-body problem