added libraries and implemented pojo class