completed main method and added algorithm method shells