starting the pushing method
push function almost done
fixing up the push function