started using proto inheritance properly