added a few methods and added pseudo code for all methods.