Utility maximization and labor supply