Variable definition and solution