updated control structures
adding functyions and oop sections