some code for labs in RBE1001 @ WPI