Instance-based programming