divided cpp and hpp in expressions, added expressions output writing