some code i wrote for eudyptula challenge