What you should know before buying or selling a property