Getting closer with binding to function context. need work out why stack is empty