simpler version for eecs510.