You can check my homework here :)