second commit

added 4 new functions