Smart cooker