added a library file and worked on ping