hard to parse the solution on terminal. will look up online later