Implemented problems 23-25