Resolution code written but broke ;)