Added basic extends implementation