COS 332 stuff