really struggling with the std library