added explicitly defined types for Queue class