first try, implement of similarity