solutions to exercise assigned