move exercise into separate file