second part of assignment