Submitted first version of solution