EE282 programming assignment 1