small exercise in computer architecture learning