solutions to problems 0 through 4