Given solution for 1-2