First Law for closed systems