Added sequence solution