first three solution