Useful functions for my ECE2500 course.