a basic cpu class