implemented constructor and return annotations