Compiler: Compile - Story 3.4 (Modifying compilation methods)

Issue #240

Reviewers:
@mohamedsaeed93 @KhaledHelmy @rami-khalil @MussabElDash @ahmedhagii