completed and refactored functional inheritance example
fixed some expectations