Solving problems with relationships