Created and implemented custom adapter