Title: Final solution