The homework was graded according to the implemented functionalities. For example, the students were asked to implement 8 basic functions, such as printing out status of the TV, responding to the power on/off key, responding to the channel +/- key, etc. The student earns certain points for each of the functions implemented. There are also two functions which the students can implement to earn extra points.