as part of hw assignment