starting implementing sorting