solution to ECE264 assignments