first attempt, solved it