Works with impementation of solution